package com.example.springLearning.part8.controller;


import com.example.springLearning.part8.service.Electric8Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/spring/part8")
public class Spring8Controller {

    @Autowired
    Electric8Service electric8Service;

    @RequestMapping(path = "charge", method = RequestMethod.GET)
    public void charge() throws Exception {
        electric8Service.charge();
    }
}
